import requests

headers = {

    "User-Agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Mobile Safari/537.36",
    "X-Requested-With": "XMLHttpRequest"
}
url = "http://m.fanyi.qq.com/translate"

data = {
    "from": 0,
    "to": 1,
    "sourceText": "宝都",
    "type": 1,
    "latitude": 1,
    "longitude": 1,
    "platform": "H5"
}

response = requests.post(url, headers=headers, data=data)
result2 = response.content.decode()

print(result2)
